import request from '@/utils/request'
import settings from '@/settings'

const authUrl = settings.apiPrefix.authUrl

export function handleLogin(data) {
  return request({
    url: `${authUrl}/api/login`,
    method: 'post',
    data
  })
}

export function getUserInfo(data) {
  return request({
    url: `${authUrl}/api/getUser`,
    method: 'post',
    data
  })
}

export function doLoginByMobileOfClient(data) {
  return request({
    url: `${authUrl}/api/loginBySms`,
    method: 'post',
    data
  })
}
